package com.example.demo.classes;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("Activeties")
public class Activeties {
    @TableId(value = "aid",type = IdType.AUTO)
    private Long aid;
    private String aname;
    private String describe;
    private String aadress;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime starttime;
    private LocalDateTime endtime;
    public Activeties(String aname, LocalDateTime startTime, LocalDateTime endTime)
    {
        this.aname = aname;
        this.starttime = startTime;
        this.endtime = endTime;
    }
}
